package strategy;


import java.util.LinkedList;
import java.util.List;

public class Node {

    private List<Node> children = new LinkedList<Node>();

    private final int idDFS;
    private final int idBFS;

    public Node(int idDFS, int idBFS) {
        this.idDFS = idDFS;
        this.idBFS = idBFS;

    }

    public void addChild(Node node) {
        children.add(node);
    }

    public List<Node> getChildren() {
        return children;
    }


    public int getIdDFS() {
        return idDFS;
    }

    public int getIdBFS() {
        return idBFS;
    }

    public static interface INodeAction {
        void doAction(Node node);
    }
}
